﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DB_EntityFramework
{
    [Table("Employee")]
    public class Employee:User
    {
        //[Key]
        //public int Id { get; set; }
        [Required]
        public string Name { get; set; }
        [Required]
        public string LastName { get; set; }
        [Required]
        public DateTime BirthDay { get; set; }
        [Required]
        public string Phone { get; set; }
        //[Required]
        //public int CityID { get; set; }
        public virtual Sity City { get; set; }

        public Employee():base()
        { }
        public Employee(Roles role):base(role)
        { 
            
        }
        public Employee(List<Roles>roles):base(roles)
        {
        }
    }
}
